{extend name="common:frm_base" /}
{block name="content"}
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">调整订单状态</div>
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" action="{:url('order/handle')}" lay-filter="component-form-group">
                <div class="layui-form-item">
                    <label class="layui-form-label">司机列表</label>
                    <div class="layui-input-inline">
                        <select name="driver_id" lay-verify="required">
                            <option value="">请选择司机</option>
                            {foreach driver as $key=>$val}
                            <option value="{$val.id}" {if $info['driver_id'] == $val['id']}selected{/if} >{$val.name}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">金额</label>
                    <div class="layui-input-inline">
                        <input type="text" name="order_price" value="{$info.order_price}" onkeyup="value=value.replace(/[^\d\.]/g,'')" class="layui-input">
                    </div>
                </div>
                {:token()}
                <input type="hidden" value="driver" name="act" />
                <input type="hidden" value="{$order_id|default=''}" name="order_id" />
                <div class="layui-form-item layui-hide">
                    <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    layui.config({
        base: '__LAYUIADMIN__/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'laydate', 'upload'], function(){
        var $ = layui.$
            ,admin = layui.admin
            ,element = layui.element
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,form = layui.form
            ,upload = layui.upload;


    });
</script>
{/block}